package jackson.src.day02;

/*
 * Author: JacksonCoder
 * FileName: polymorphism
 * Version: 1.0.0
 */
public class polymorphism {
    public static void main(String[] args) {
        M m = new N();
        m.run(); //  N.run
    }
}

class M {
    public void run() {
        System.out.println("M.run");
    }
}

class N extends M {

    public void run(String s) {
    }

    @Override
    public void run() {
        System.out.println("N.run");
    }


}